const { RangePicker } = DatePicker;

export default function MyDatePicker({ range = false, picker, showTiem, ...$attrs }) {
	const Comp = range ? RangePicker : DatePicker;
	return <Comp picker={picker} format={formatFn(picker, showTiem)} {...$attrs} />;
}

/***
 * 参数属性
 * @property {Boolean} range 是否为时间范围选择器
 */
MyDatePicker.propTypes = {
	range: propTypes.bool
};
